import 'package:kkhousekeep/generated/json/base/json_field.dart';
import 'package:kkhousekeep/generated/json/login_owner_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class LoginOwnerEntity {
	late int code;
	late LoginOwnerObj obj;
	late String msg;

	LoginOwnerEntity();

	factory LoginOwnerEntity.fromJson(Map<String, dynamic> json) => $LoginOwnerEntityFromJson(json);

	Map<String, dynamic> toJson() => $LoginOwnerEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class LoginOwnerObj {
	late String token;
	late bool roomCheckPass;
	late String ownerType;
	late String ownerName;
	late String ownerImage;

	LoginOwnerObj();

	factory LoginOwnerObj.fromJson(Map<String, dynamic> json) => $LoginOwnerObjFromJson(json);

	Map<String, dynamic> toJson() => $LoginOwnerObjToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}